body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000;
    background: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: #222;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

div {
    box-sizing: border-box;
}


/* 搜索模块 */

.search-index {
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    width: 100%;
    max-width: 540px;
    min-width: 320px;
    height: 44px;
    background-color: #f6f6f6;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.search {
    position: relative;
    height: 26px;
    line-height: 24px;
    font-size: 12px;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 7px 10px;
    padding-left: 25px;
    flex: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.search::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    background: url(../images/sprite.png) no-repeat -59px -279px;
    background-size: 104px auto;
}

.user {
    overflow: hidden;
    width: 44px;
    height: 44px;
    text-align: center;
    font-size: 12px;
    color: #2eaae0;
}

.user::before {
    content: "";
    display: block;
    width: 23px;
    height: 23px;
    background: url(../images/sprite.png) no-repeat -59px -194px;
    background-size: 104px auto;
    margin: 4px auto -2px;
}


/* 焦点图模块 */

.focus {
    margin-top: 44px;
}

.focus img {
    width: 100%;
}


/* 局部导航栏 */

.local-nav {
    display: flex;
    height: 64px;
    margin: 3px 4px;
    background-color: #fff;
    border-radius: 8px;
}

.local-nav li {
    flex: 1;
}

.local-nav li a {
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.local-nav li a [class^="local-nav"] {
    width: 32px;
    height: 32px;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;
}

.local-nav li a .local-nav-icon2 {
    background-position: 0 -32px;
}

.local-nav li a .local-nav-icon3 {
    background-position: 0 -64px;
}

.local-nav li a .local-nav-icon4 {
    background-position: 0 -92px;
}

.local-nav li a .local-nav-icon5 {
    background-position: 0 -128px;
}


/* 主导航栏 */

nav {
    overflow: hidden;
    border-radius: 8px;
    margin: 0 4px 3px;
}

.nav-common {
    display: flex;
    height: 88px;
    background-color: pink;
}

.nav-common:nth-child(1) {
    /* 线性渐变 */
    background: -webkit-linear-gradient(left, #fa5a55, #fa994d);
}

.nav-common:nth-child(2) {
    margin: 3px 0;
    /* 线性渐变 */
    background: -webkit-linear-gradient(left, #4b90ed, #53bced);
}

.nav-common:nth-child(3) {
    /* 线性渐变 */
    background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
}

.nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-items:nth-child(-n+2) {
    border-right: 1px solid #fff;
}

.nav-items a {
    flex: 1;
    text-align: center;
    line-height: 44px;
    font-size: 14px;
    color: #fff;
    text-shadow: 1px 1px rgba(0, 0, 0, .2);
}

.nav-items a:last-child {
    border-top: 1px solid #fff;
}

.nav-items:first-child a {
    border: 0;
    background: url(../images/hotel.png) no-repeat bottom center;
    background-size: 121px auto;
}


/* 侧导航栏 */

.subnav-entry {
    display: flex;
    flex-wrap: wrap;
    margin: 0 4px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.subnav-entry li {
    /* 里面的子盒子可以写百分比 ,相对于父级来说的*/
    flex: 20%;
    margin: 5px 0;
}

.subnav-entry li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #222;
}

.subnav-entry li a [class^="subnav-entry"] {
    width: 24px;
    height: 24px;
    background: url(../images/subnav-bg.png) no-repeat 0 2px;
    background-size: 24px auto;
}

.subnav-entry li a .subnav-entry-icon2 {
    background-position: 3px -25px;
}

.subnav-entry li a .subnav-entry-icon3 {
    background-position: 3px -54px;
}

.subnav-entry li a .subnav-entry-icon4 {
    background-position: 2px -275px;
}

.subnav-entry li a .subnav-entry-icon5 {
    background-position: 1px -84px;
}

.subnav-entry li a .subnav-entry-icon6 {
    background-position: 5px -139px;
}

.subnav-entry li a .subnav-entry-icon7 {
    background-position: 0 -169px;
}

.subnav-entry li a .subnav-entry-icon8 {
    background-position: 1px -111px;
}

.subnav-entry li a .subnav-entry-icon9 {
    background-position: 1px -195px;
}

.subnav-entry li a .subnav-entry-icon10 {
    background-position: 4px -246px;
}


/* 销售模块 */

.sales-box {
    margin: 4px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
}

.sales-hd {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #eee;
}

.sales-hd h2 {
    position: relative;
    font-size: 0;
}

.sales-hd h2::after {
    position: absolute;
    top: 12px;
    left: 20px;
    content: "";
    width: 79px;
    height: 18px;
    background: url(../images/hot.png) no-repeat 0 -18px;
    background-size: 79px auto;
}

.more {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: #fff;
    border-radius: 15px;
    padding: 2px 20px 2px 10px;
    background: -webkit-linear-gradient(left, #ff506c, #ff6bc6);
}

.more::after {
    position: absolute;
    top: 8px;
    right: 10px;
    content: "";
    width: 5px;
    height: 5px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

.row {
    flex: 1;
    display: flex;
}

.row:nth-child(-n+2) {
    border-bottom: 1px solid #eee;
}

.row a {
    flex: 1;
}

.row a:first-child {
    border-right: 1px solid #eee;
}

.row a img {
    width: 100%;
}


/* 帮助模块 */

.help-box {
    display: flex;
    height: 50px;
    margin: 0 4px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.help a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.help a [class^="help"] {
    width: 18px;
    height: 18px;
    margin: 4px 0;
    background: url(../images/sprite.png) no-repeat -58px -152px;
    background-size: 104px auto;
}

.help a .help-icon2 {
    background-position: -58px -172px;
}

.help a .help-icon3 {
    background-position: -60px -308px;
}

.help {
    flex: 1;
}


/* 底部信息模块 */

footer {
    margin-top: 10px;
    height: 50px;
    text-align: center;
    font-size: 12px;
}

footer span {
    color: #666;
}

.footer-top a:first-child:after {
    content: "";
    border-left: 1px solid #ccc;
    margin: 0 16px;
}

.footer-bottom {
    margin-top: 5px;
}